#ifndef __EXTERNAL_H__
#define __EXTERNAL_H__


#include "at32f403a_407.h"


typedef struct FRAME_485{
	uint8_t head;
	uint8_t cmd;
	uint8_t len;
	uint8_t sum;
	uint8_t jor;
	uint8_t data[0];
}FRAME_485;

typedef struct RES_485{
	uint8_t res0;
	uint8_t res1;
}RES_485;

void rs485_rx_charge(uint8_t *buf,uint8_t len);

#endif

